package com.zeng.sim.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zeng.sim.controller.domain.SysMenu;
import com.zeng.sim.controller.vo.SysMenuVo;
import com.zeng.sim.mapper.model.SysMenuEntity;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zengwanlin
 * @since 2023-12-20
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    /**
     * 递归获取菜单tree
     * @param sysMenus
     * @param parentId
     * @return
     */
    List<SysMenuVo> toUserMenu(List<SysMenuVo> sysMenus, String parentId);

    boolean valid(String resId);

    boolean invalid(String resId);

    List<SysMenu> list(SysMenu sysMenu);

    boolean update(SysMenu sysMenu);

    boolean remove(List<String> resIdList);

}
